<?php

namespace app\common\model;

use think\Model;

class MatchesScheduleModel extends Model {

    protected $connection = 'db_sports';

    public function footballmatch()
    {
        return $this->hasOne(FootballMatchModel::class, 'id', 'match_id')->with(['venue','hometeam','awayteam']);
    }

}
